﻿using RpcHelper.Validate;
namespace Wedonek.RpcStore.Service.Model
{
        public class DictateNewNode
        {
                /// <summary>
                /// 父级Id
                /// </summary>
                [NumValidate ("rpc.dictate.parent.id.error", 0)]
                public long ParentId { get; set; }
                /// <summary>
                /// 指令集
                /// </summary>
                [NullValidate ("rpc.dictate.null")]
                [LenValidate ("rpc.dictate.len", 1, 50)]
                [FormatValidate ("rpc.dictate.error", ValidateFormat.字母点)]
                public string Dictate { get; set; }
                /// <summary>
                /// 指令名
                /// </summary>
                [NullValidate ("rpc.dictate.name.null")]
                [LenValidate ("rpc.dictate.name.len", 1, 50)]
                public string DictateName { get; set; }
                /// <summary>
                /// 是否终节点
                /// </summary>
                public bool IsEndpoint { get; set; }
        }
}
